package com.mylib.libcore.customapi;

import com.google.gson.JsonObject;
import com.mylib.libcore.bean.BaseBean;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * @author Administrator
 * @date 2019/12/20-23:37
 * @description 自定义webview api接口
 **/

public interface CustomServiceApi {

    /**
     * 上报在线时长
     * @param jsonObject
     * @param
     * @return
     */
    @POST("/uApp/user/addOnlineTime")
    Observable<BaseBean<Object>> addOnlineTime(@Body JsonObject jsonObject);
    /**
     * 获取新token
     * @param jsonObject
     * @param
     * @return
     */
    @POST("index.php")
    Observable<BaseBean> getNewToken(@QueryMap Map<String, String> map, @Body JsonObject jsonObject);


}
